<!DOCTYPE html>
<html>

<head></head>

<body>
    <script type="module">
        import { Jscheme } from './jscheme.js';
        var j = new Jscheme();
        //console.log(j.parse_bool(j.string_generator("#t")))
        //console.log(j.parse_expressions(j.string_generator("#t\"\"")))
        //console.log(j.parse_expressions(j.string_generator("123")))
        //console.log(j.parse_expressions(j.string_generator("(lambda (x) (+ x 1))")))
        //console.log(j.parse("(+ 1 2)"))
        //var c=j.parse("(let ((z 5)) (let ((x 9)(y 2)) (+ x y z)))")
        var c=j.parse("((lambda (x) (if (> x 1) (alert x) 1)) 2)")
        console.log(c)
        var ast=j.optimize(c)
        console.log(ast)
        var aaa = j.tailcall(ast);
        console.log(aaa)
        var secd = j.compile_to_secd(ast)
        console.log(secd)
        var js = j.compile_to_js(ast)
        console.log(js)

    </script>
</body>

</html>